package geppetto.phraseTable;

import java.text.CharacterIterator;
import java.text.StringCharacterIterator;

public class ChineseSplitedPrinter implements PhrasePrinter{

	public String getStringToPrint(String s) {
		String out = "";		
		CharacterIterator it = new StringCharacterIterator(s);
		for (char ch=it.first(); ch != CharacterIterator.DONE; ch=it.next()) { 
			 if(!Character.isWhitespace(ch)){
				 out += ch + " ";
			 }
		}
		return out.substring(0, out.length()-1);
	}

}
